package com.codechuan.hallo_internal.utils;

import android.app.Application;
import android.content.Context;

import java.text.SimpleDateFormat;

/**
 * @Deprecated 悬浮窗获取上下文
 */
public class ContextUtil {
    public static Application application;
    public static Context context;

    public static int getStatusBarHeight() {
        int result = 0;
        int resourceId = application.getResources().getIdentifier("status_bar_height", "dimen", "android");
        if (resourceId > 0) {
            result =  application.getResources().getDimensionPixelSize(resourceId);
        }
        return result;
    }
}
